package com.seanLab.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * Created by BodeNg on 18-3-27.
 */
@Document(collection = "#{getSpecialImage}")
public class SpecialImage implements Serializable, Entity, AbstractImage{
    @Id
    private String imgID;

    private String imgURL;
    private String imgOriginalURL;
    private String imgDescription;
    private String imgSource;
    private List<Category> imgCategory;
    private List<TagInfo> imgTagList;
//    private String articleID;
    private String articleTitle;    //与Image不一样的属性
    private String articleURL;
//    private Integer offset;
//    private String contextAbove;
//    private String contextBelow;
    private int deprecatedFlag;     //初始化伪0 表示被标记删除次数
    private int imgType;
    private int esFlag;     //初始化为0 表示还未同步至es

    private List<Double> imgTopic; //图片主题（基于文章主题）
    private List<Integer> topTopics;

    public SpecialImage() {
    }

    @Override
    public String getImgID() {
        return imgID;
    }

    public void setImgID(String imgID) {
        this.imgID = imgID;
    }

    @Override
    public String getImgURL() {
        return imgURL;
    }

    public void setImgURL(String imgURL) {
        this.imgURL = imgURL;
    }

    @Override
    public String getImgOriginalURL() {
        return imgOriginalURL;
    }

    public void setImgOriginalURL(String imgOriginalURL) {
        this.imgOriginalURL = imgOriginalURL;
    }

    public String getImgDescription() {
        return imgDescription;
    }

    public void setImgDescription(String imgDescription) {
        this.imgDescription = imgDescription;
    }

    @Override
    public String getImgSource() {
        return imgSource;
    }

    public void setImgSource(String imgSource) {
        this.imgSource = imgSource;
    }

    @Override
    public List<Category> getImgCategory() {
        return imgCategory;
    }

    public void setImgCategory(List<Category> imgCategory) {
        this.imgCategory = imgCategory;
    }

    @Override
    public List<TagInfo> getImgTagList() {
        return imgTagList;
    }

    @Override
    public String getArticleID() {
        return "";
    }

    public void setImgTagList(List<TagInfo> imgTagList) {
        this.imgTagList = imgTagList;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleURL() {
        return articleURL;
    }

    public void setArticleURL(String articleURL) {
        this.articleURL = articleURL;
    }

    public int getDeprecatedFlag() {
        return deprecatedFlag;
    }

    public void setDeprecatedFlag(int deprecatedFlag) {
        this.deprecatedFlag = deprecatedFlag;
    }

    public int getImgType() {
        return imgType;
    }

    public void setImgType(int imgType) {
        this.imgType = imgType;
    }

    public int getEsFlag() {
        return esFlag;
    }

    public void setEsFlag(int esFlag) {
        this.esFlag = esFlag;
    }

    public List<Double> getImgTopic() {
        return imgTopic;
    }

    public void setImgTopic(List<Double> imgTopic) {
        this.imgTopic = imgTopic;
    }

    @Override
    public List<Integer> getTopTopics() {
        return topTopics;
    }

    public void setTopTopics(List<Integer> topTopics) {
        this.topTopics = topTopics;
    }
}
